﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.CopsBanditsUI.OfficerCellStates {
    import flash.display.*;
    import org.aswing.*;
    import Classes.*;
    import Classes.util.*;
    import Display.CopsBanditsUI.*;
    import org.aswing.event.*;
    import Display.aswingui.*;

    public class EmptyOfficerState extends GenericOfficerState {

        public function EmptyOfficerState(_arg1:int, _arg2:OfficerCell){
            super(null, _arg1, _arg2);
        }
        override protected function init():void{
            var _local2:Sprite;
            var _local1:JPanel = ASwingHelper.makeFlowJPanel(FlowLayout.LEFT);
            _local1.append(ASwingHelper.horizontalStrut(595));
            if ((m_color % 2) == 0){
                _local2 = new Sprite();
                _local2.graphics.beginFill(EmbeddedArt.lightBlueTextColor);
                _local2.graphics.drawRect(0, 0, 595, 50);
                _local2.graphics.endFill();
                ASwingHelper.setBackground(_local1, _local2);
            };
            this.setPreferredHeight(50);
            _local1.setPreferredWidth(595);
            _local1.setMinimumWidth(595);
            _local1.setMaximumWidth(595);
            this.append(_local1);
        }
        override protected function makeNamePanel():JPanel{
            var _local1:JPanel = ASwingHelper.makeSoftBoxJPanelVertical(SoftBoxLayout.CENTER);
            var _local2:JLabel = ASwingHelper.makeLabel(ZLoc.t("Dialogs", "Cops_status_empty"), EmbeddedArt.DEFAULT_FONT_NAME_BOLD, 14, EmbeddedArt.blueTextColor);
            _local1.append(_local2);
            return (_local1);
        }
        override protected function makeActionPanel():JPanel{
            var _local1:JPanel = ASwingHelper.makeSoftBoxJPanelVertical(SoftBoxLayout.TOP);
            var _local2:JButton = new CustomButton(ZLoc.t("Dialogs", "Cops_button_invite"), null, "OrangeMediumButtonUI");
            var _local3:AssetIcon = new AssetIcon((new EmbeddedArt.icon_cash() as DisplayObject));
            var _local4:JButton = new CustomButton(ZLoc.t("Dialogs", "Cops_button_xtofill", {amount:String(1)}), _local3, "CashButtonUI");
            _local4.addActionListener(this.buyDonut, 0, true);
            _local2.addActionListener(this.doAction, 0, true);
            _local1.appendAll(_local2, _local4);
            return (_local1);
        }
        override protected function makeDonutPanel():JPanel{
            var _local1:JPanel = ASwingHelper.makeFlowJPanel(FlowLayout.LEFT);
            var _local2:DisplayObject = (new (CopsDialog.assetDict["police_doughnut_disabled"])() as DisplayObject);
            var _local3:AssetPane = new AssetPane(_local2);
            _local1.append(_local3);
            return (_local1);
        }
        protected function buyDonut(_arg1:AWEvent):void{
        }
        override protected function doAction(_arg1:AWEvent):void{
            FrameManager.navigateTo("copsNBandits.php");
        }

    }
}//package Display.CopsBanditsUI.OfficerCellStates 
